package com.baidu.bulls.stock.entity.user;

import com.baidu.bulls.stock.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 * @author //蔡志豪
 * @since 2022-02-18
 */
@Data
@Entity
@Api(value = "HATEOAS接口-角色管理(AuthorityRole)")
@EqualsAndHashCode(callSuper = false)
@TableName("t_authority_role")
@Table(name = "t_authority_role")
@ApiModel(value="AuthorityRole", description="角色表")
public class AuthorityRole extends BaseEntity {


    @ApiModelProperty(value = "机构类型id")
    @Column(name = "institutionTypeId")
    private String institutionTypeId;

    @ApiModelProperty(value = "对应机构类型下的机构id")
    @Column(name = "institutionId")
    private Long institutionId;

    @ApiModelProperty(value = "角色名称")
    @Column(name = "roleName")
    private String roleName;

    @ApiModelProperty(value = "角色描述")
    @Column(name = "roleDec")
    private String roleDec;

    @ApiModelProperty(value = "1：机构下的管理员角色，0: 普通角色")
    @Column(name = "isAdmin")
    private Integer isAdmin;


}
